package com.lwj.liwanjia.adapter;

import android.content.Context;

import com.lwj.liwanjia.R;
import com.superrecycleview.superlibrary.adapter.BaseViewHolder;
import com.superrecycleview.superlibrary.adapter.SuperBaseAdapter;

import java.util.List;

/**
 * Created by Administrator on 2017/9/17.
 */

public class KeFuAdapter extends SuperBaseAdapter<String> {
    private List<String> list;

    public KeFuAdapter(Context context, List<String> data) {
        super(context, data);
        this.list = data;
    }

    @Override
    protected void convert(BaseViewHolder holder, String item, int position) {
        if (item.equals("0")) {

        } else {
        }
    }

    @Override
    protected int getItemViewLayoutId(int position, String item) {
        if (item.equals("0")) {//客服
            return R.layout.kefu_item1;
        } else {
            return R.layout.kefu_item2;//客户
        }
    }
}
